package com.example.springboot.enums;

/**
 * TODO
 *
 * @author qibao
 * @version v0.1 2020/11/30
 */
public enum Employee {
    LEADEr("zhangsan", 30) {
        public void print() {
            System.out.println("print");
        }

        public void say(String name) {
            System.out.println("hello" + name);
        }
    },
    TEACHER("小红", 20),
    STUDENt("name", 35);

    private String name;
    private int age;


    Employee(String name, int i) {
        this.ordinal();
        this.name = name;
        this.age = i;
    }
}
